import request from '@/utils/request'

// 查询设备信息测试列表
export function listDevice_info_test(query) {
  return request({
    url: '/test/device_info_test/list',
    method: 'get',
    params: query
  })
}

// 获取包含地理位置名称的设备列表
export function listDevice_info_test_with_location(query) {
  return request({
    url: '/test/device_info_test/listWithLocation',
    method: 'get',
    params: query
  })
}

// 查询设备信息测试详细
export function getDevice_info_test(deviceId) {
  return request({
    url: '/test/device_info_test/' + deviceId,
    method: 'get'
  })
}

// 新增设备信息测试
export function addDevice_info_test(data) {
  return request({
    url: '/test/device_info_test',
    method: 'post',
    data: data
  })
}

// 修改设备信息测试
export function updateDevice_info_test(data) {
  return request({
    url: '/test/device_info_test',
    method: 'put',
    data: data
  })
}

// 删除设备信息测试
export function delDevice_info_test(deviceId) {
  return request({
    url: '/test/device_info_test/' + deviceId,
    method: 'delete'
  })
}
